//
//  UIButton+TouchEvent.m
//  03-UIResponder
//
//  Created by 韩旭 on 16/7/18.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "UIButton+TouchEvent.h"

@implementation UIButton (TouchEvent)
// 重写这个方法, 可以让这个控件失去响应能力
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
    return NO;
}

//出了边界也可以响应事件
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    return nil;
}

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
////    NSLog(@"%@", self.class);
//}
@end
